# 环境基准配置
BASE_URL = "http://192.168.10.142/api/cloud-api"


# excel格式的测试用例文件配置
EXCEL_FILE = "./data/测试用例.xlsx"
SHEET_NAME = "Sheet1"

# mysql配置
# DB_HOST = "192.168.10.142"
# DB_PORT = 3306
# DB_NAME = "xingyun"
# DB_USER = "root"
# DB_PASSWORD = "123456"

# mysql资源销毁
# SQL1 = 'delete from sp_category where cat_name = "大码服装"'   # 注意，内外层的引号要不同。
# SQL2 = 'delete from sp_attribute where attr_name = "VIP尺码"'
# SQL3 = 'delete from sp_goods where goods_name = "大码牛仔裤+"'
SQLS_LIST = [
    "select count(*) from a_production_tasks where available = 1"
]


# 飞书相关配置
# WEBHOOK 地址
WEBHOOK = "https://open.feishu.cn/open-apis/bot/v2/hook/96b852f0-0ddd-41fe-822a-0f2cf796edaf"

# 项目名称
PROJECT = "星云ERP"

# 是否发送飞书消息的开关
FEISHU_IS_SEND = True

# 测试报告的地址
import os
# 在实际工作中，不同环境的allure报告路径不同，到时候注意配置。
if os.environ["ENV"] == "prod":
    REPORT_PATH = "http://localhost:63342/ERP_jkzdh/report/html_report/index.html"
elif os.environ["ENV"] == "test":
    REPORT_PATH = "http://localhost:63342/ERP_jkzdh/report/html_report/index.html"